<%@page import="com.office.automate.service.impl.employee.EmployeeQueryServiceImplementer"%>
<%@page import="com.office.automate.service.def.employee.EmployeeQueryService"%>
<%@page import="com.office.automate.model.administration.Division"%>
<%@page import="com.office.automate.model.administration.Branch"%>
<%@page import="com.office.automate.configuration.property.ConfigurationProperties"%>
<%@page import="java.util.Properties"%>
<%@page import="com.office.automate.model.administration.SecurityLevel"%>
<%@page import="java.util.List"%>
<%@page import="com.office.automate.service.impl.administration.AdministrationServiceImplementer"%>
<%@page import="com.office.automate.service.def.administration.AdministrationService"%>
<%@page import="com.office.automate.frontier.utility.DataConversionUtility"%>
<%@page import="java.util.Calendar"%>
<%@page import="com.office.automate.frontier.utility.ExceptionMessagesManagement"%>
<%@page import="com.office.automate.validation.framework.ValidatorObject"%>
<%@page import="com.office.automate.exception.framework.FrontierVisibleException"%>
<%@page import="java.util.HashMap"%>
<%@page import="com.office.automate.model.employee.Employee"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<%@ include file="../common/CommonHeaderInfo.jsp"%>
<title>Employee Registration</title>
</head>
<body>
	<%@ include file="../common/SiteHeaderSection.jsp" %>
	<%@ include file="../common/EmployeeManagementMenu.jsp"%>

		<%
			if (currentUser == null) {
				return;
			}
			Properties configSeqPropspg = ConfigurationProperties.getProps(); 
			Utility utilpg = new Utility(currentUser.getSecurityLevels());
			if (!utilpg.isFunctionalSecurityAllow(configSeqPropspg.getProperty("MAIN_EMPLOYEE_MANAGEMENT")) ||  
						!utilpg.isFunctionalSecurityAllow(configSeqPropspg.getProperty("REGISTER_NEW_EMPLOYEE")))  {
				response.sendRedirect("/OfficeAutomation/jsp/HomePage.jsp");
			}

			boolean isValidationErrorExist = false;
			ExceptionMessagesManagement exceptionMessagesManagement  = null;
			Properties configProps = ConfigurationProperties.getProps();
			DataConversionUtility dataConversionUtility = new DataConversionUtility();
			AdministrationService administrationService = new AdministrationServiceImplementer();
			List<SecurityLevel> availableSecurityLevels = administrationService.getAvailableSecurityLevels();
			List<Branch> availableBranchs = administrationService.getAvailableBranches();
			List<Division> availableDivisions = administrationService.getAvailableDivisions();
			EmployeeQueryService employeeQueryService = new EmployeeQueryServiceImplementer();
			Employee newEmployee = (Employee) request.getAttribute("New_Employee");
			Employee employee = (Employee) request.getAttribute("Employee");
			ValidatorObject validationErrors = (ValidatorObject) request.getAttribute("FieldValidationErrors");
			if (newEmployee != null) {
		%>
		<tr>
			<td>
				<table width="100%" class="employeeregistrationresult">
					<tr>
						<td>
							<center>
								<font class="employeeregistresultfont"> <b> Employee was registered successfully...!!! </b> <br /> </font>
								<i><b>New Employee Id : <%=newEmployee.getEmployeeId()%> </b></i>
							</center>
						</td>
					</tr>
		
				</table>
			</td>
		</tr>
		<%
			}
		%>
		<tr>
		<td>
		<form action="/OfficeAutomation/EmployeeRegistrationServlet" method="post">
		<center>
		<table>
			<tr>
				<td colspan="3"><center><font class="formtablecaption"><u>Employee Primary Information Registration</u></font></center><br /></td>
			</tr>
			<tr>
			<%
		  	Calendar cal=Calendar.getInstance();
			Calendar calendar = Calendar.getInstance();
		  	int year=cal.get(Calendar.YEAR);
			if (validationErrors != null) {
				exceptionMessagesManagement = new ExceptionMessagesManagement(validationErrors.getValidationErrorList());
				isValidationErrorExist = true;
			}
			%>
				  <td>
						<table class="mainContentStyles">
							<tr>
								<td  width="200px">Username</td>
								<td><input type="text" name="username" <% if (isValidationErrorExist) { %> value="<%=employee.getUsername() %>" <% } %>></td>
							</tr>
							<%
							 if (isValidationErrorExist && exceptionMessagesManagement.checkExistenceOfErrorByKey("Username")) {
							%>
								<tr>
									<td colspan="2"><font class="errorMessageStyles"> <%=exceptionMessagesManagement.getDetailExceptionMessage("Username")  %> </font></td>
								</tr>
							<%
							 }
							%>
							<tr>
								<td>Password</td>
								<td><input type="password" name="password" <% if (isValidationErrorExist) { %> value="<%=employee.getPassword() %>" <% } else { %> value="slbc" <% }%>></td>
							</tr>
							<%
							if (isValidationErrorExist && exceptionMessagesManagement.checkExistenceOfErrorByKey("Password")) {
							%>
								<tr>
									<td colspan="2"><font class="errorMessageStyles"> <%=exceptionMessagesManagement.getDetailExceptionMessage("Password")  %> </font></td>
								</tr>
							<%
							 }
							%>
							<tr>
								<td>Confirm Password</td>
								<td><input type="password" name="confirmPassword" <% if (isValidationErrorExist) { %> value="<%=employee.getConfirmPassword() %>" <% } else { %> value="slbc" <% }%> ></td>
							</tr>
							<%
							if (isValidationErrorExist && exceptionMessagesManagement.checkExistenceOfErrorByKey("ConfirmPassword")) {
							%>
								<tr>
									<td colspan="2"><font class="errorMessageStyles"> <%=exceptionMessagesManagement.getDetailExceptionMessage("ConfirmPassword")  %> </font></td>
								</tr>
							<%
							 }
							%>
							<tr>
								<td>Security Level</td>
								<td><select name="securityLevel">
										<option />
								<%
									for (SecurityLevel seclev :availableSecurityLevels) {
								%>
									<option value="<%=seclev.getSecurityLevelId() %>" <% if (isValidationErrorExist && seclev.getSecurityLevelId() == employee.getSecurityLevel()) { %> selected="selected" <% } %>><%=seclev.getSecurityLevelDescription() %></option>
								<%
									}
								%>
								</select></td>
							</tr>
							<%
							 if (isValidationErrorExist && exceptionMessagesManagement.checkExistenceOfErrorByKey("SecurityLevel")) {
							%>
								<tr>
									<td colspan="2"><font class="errorMessageStyles"> <%=exceptionMessagesManagement.getDetailExceptionMessage("SecurityLevel")  %> </font></td>
								</tr>
							<%
							 }
							%>
							<tr>
								<td>First Name</td>
								<td><input type="text" name="firstName" <% if (isValidationErrorExist) { %> value="<%=employee.getFirstName() %>" <% } %>></td>
							</tr>
							<%
							 if (isValidationErrorExist && exceptionMessagesManagement.checkExistenceOfErrorByKey("FirstName")) {
							%>
								<tr>
									<td colspan="2"><font class="errorMessageStyles"> <%=exceptionMessagesManagement.getDetailExceptionMessage("FirstName")  %> </font></td>
								</tr>
							<%
							 }
							%>
							<tr>
								<td>Middle Name</td>
								<td><input type="text" name="middleName" <% if (isValidationErrorExist) { %> value="<%=employee.getMiddleName() %>" <% } %>></td>
							</tr>
							<%
							 if (isValidationErrorExist && exceptionMessagesManagement.checkExistenceOfErrorByKey("MiddleName")) {
							%>
								<tr>
									<td colspan="2"><font class="errorMessageStyles"> <%=exceptionMessagesManagement.getDetailExceptionMessage("MiddleName")  %> </font></td>
								</tr>
							<%
							 }
							%>
							<tr>
								<td>Last Name</td>
								<td><input type="text" name="lastName" <% if (isValidationErrorExist) { %> value="<%=employee.getLastName() %>" <% } %>></td>
							</tr>
							<%
							 if (isValidationErrorExist && exceptionMessagesManagement.checkExistenceOfErrorByKey("LastName")) {
							%>
								<tr>
									<td colspan="2"><font class="errorMessageStyles"> <%=exceptionMessagesManagement.getDetailExceptionMessage("LastName")  %> </font></td>
								</tr>
							<%
							 }
							%>
							<tr>
								<td>NIC Number</td>
								<td><input type="text" name="nic" <% if (isValidationErrorExist) { %> value="<%=employee.getNic() %>" <% } %> size="10" maxlength="10"></td>
							</tr>
							<%
							 if (isValidationErrorExist && exceptionMessagesManagement.checkExistenceOfErrorByKey("NicNumber")) {
							%>
								<tr>
									<td colspan="2"><font class="errorMessageStyles"> <%=exceptionMessagesManagement.getDetailExceptionMessage("NicNumber")  %> </font></td>
								</tr>
							<%
							 }
							%>
							<tr>
								<td>E-mail</td>
								<td><input type="text" name="email" <% if (isValidationErrorExist) { %> value="<%=employee.getEmail() %>" <% } %>></td>
							</tr>
							<%
							 if (isValidationErrorExist && exceptionMessagesManagement.checkExistenceOfErrorByKey("Email")) {
							%>
								<tr>
									<td colspan="2"><font class="errorMessageStyles"> <%=exceptionMessagesManagement.getDetailExceptionMessage("Email")  %> </font></td>
								</tr>
							<%
							 }
							%>
							<tr>
								<td>Nationality</td>
								<td><input type="text" name="nationality" <% if (isValidationErrorExist) { %> value="<%=employee.getNationality() %>" <% } %>></td>
							</tr>
							<%
							 if (isValidationErrorExist && exceptionMessagesManagement.checkExistenceOfErrorByKey("Nationality")) {
							%>
								<tr>
									<td colspan="2"><font class="errorMessageStyles"> <%=exceptionMessagesManagement.getDetailExceptionMessage("Nationality")  %> </font></td>
								</tr>
							<%
							 }
							%>
							<tr>
								<td>Address Line 1</td>
								<td><input type="text" name="addressLine1" <% if (isValidationErrorExist) { %> value="<%=employee.getAddressLine1() %>" <% } %>></td>
							</tr>
							<%
							 if (isValidationErrorExist && exceptionMessagesManagement.checkExistenceOfErrorByKey("AddressLine1")) {
							%>
								<tr>
									<td colspan="2"><font class="errorMessageStyles"> <%=exceptionMessagesManagement.getDetailExceptionMessage("AddressLine1")  %> </font></td>
								</tr>
							<%
							 }
							%>
							<tr>
								<td>Address Line 2</td>
								<td><input type="text" name="addressLine2" <% if (isValidationErrorExist) { %> value="<%=employee.getAddressLine2() %>" <% } %>></td>
							</tr>
							<%
							 if (isValidationErrorExist && exceptionMessagesManagement.checkExistenceOfErrorByKey("AddressLine2")) {
							%>
								<tr>
									<td colspan="2"><font class="errorMessageStyles"> <%=exceptionMessagesManagement.getDetailExceptionMessage("AddressLine2")  %> </font></td>
								</tr>
							<%
							 }
							%>
							<tr>
								<td>City</td>
								<td><input type="text" name="city" <% if (isValidationErrorExist) { %> value="<%=employee.getCity() %>" <% } %>></td>
							</tr>
							<%
							 if (isValidationErrorExist && exceptionMessagesManagement.checkExistenceOfErrorByKey("City")) {
							%>
								<tr>
									<td colspan="2"><font class="errorMessageStyles"> <%=exceptionMessagesManagement.getDetailExceptionMessage("City")  %> </font></td>
								</tr>
							<%
							 }
							%>
							<tr>
								<td>Zip Code</td>
								<td><input type="text" name="zipCode" <% if (isValidationErrorExist && employee.getZipCode() != -1) { %> value="<%=employee.getZipCode() %>" <% } %>></td>
							</tr>
							<%
							 if (isValidationErrorExist && exceptionMessagesManagement.checkExistenceOfErrorByKey("ZipCode")) {
							%>
								<tr>
									<td colspan="2"><font class="errorMessageStyles"> <%=exceptionMessagesManagement.getDetailExceptionMessage("ZipCode")  %> </font></td>
								</tr>
							<%
							 }
							%>
							<tr>
								<td>Contact No</td>
								<td><input type="text" name="contactNo" <% if (isValidationErrorExist && employee.getContactNo() != -1) { %> value="<%=employee.getContactNo() %>" <% } %> size="10" maxlength="10"></td>
							</tr>
							<%
							 if (isValidationErrorExist && exceptionMessagesManagement.checkExistenceOfErrorByKey("ContactNo")) {
							%>
								<tr>
									<td colspan="2"><font class="errorMessageStyles"> <%=exceptionMessagesManagement.getDetailExceptionMessage("ContactNo")  %> </font></td>
								</tr>
							<%
							 }
							%>
						</table>
					</td>
					<td width="100px">
					
					</td>
					<td>
						<table>
							<tr>
								<td>Salary</td>
								<td><input type="text" name="salary" <% if (isValidationErrorExist && employee.getSalary() != -1) { %> value="<%=String.format("%.2f",employee.getSalary()) %>" <% } %>></td>
							</tr>
							<%
							 if (isValidationErrorExist && exceptionMessagesManagement.checkExistenceOfErrorByKey("Salary")) {
							%>
								<tr>
									<td colspan="2"><font class="errorMessageStyles"> <%=exceptionMessagesManagement.getDetailExceptionMessage("Salary")  %> </font></td>
								</tr>
							<%
							 }
							%>
							<tr>
								<td>Payment Type</td>
								<td><select name="paymentType">
									<option />
									<option value="Cheque" <% if (isValidationErrorExist && employee.getPaymentType() != null && employee.getPaymentType().equalsIgnoreCase("Cheque")) { %> selected="selected" <% } %>>Cheque</option>
									<option value="Cash" <% if (isValidationErrorExist && employee.getPaymentType() != null && employee.getPaymentType().equalsIgnoreCase("Cash")) { %> selected="selected" <% } %>>Cash</option>
								</select>		
								</td>
							</tr>
							<%
							 if (isValidationErrorExist && exceptionMessagesManagement.checkExistenceOfErrorByKey("PaymentType")) {
							%>
								<tr>
									<td colspan="2"><font class="errorMessageStyles"> <%=exceptionMessagesManagement.getDetailExceptionMessage("PaymentType")  %> </font></td>
								</tr>
							<%
							 }
							%>
							<tr>
								<td>Bank Name</td>
								<td><select name="bankName">
										<option />
										<%
										int bankNameCount = dataConversionUtility.convertStringToNumber(configProps.getProperty("BANK_NAME_COUNT"));
										for (int i=1; i<=bankNameCount; i++){
											String bankName = (String)configProps.getProperty("BANK_NAME_"+i);
										%>
											<option value="<%=bankName %>" <% if (isValidationErrorExist && bankName == employee.getBankName()) { %> selected="selected" <% } %>><%=bankName %></option>
										<%
										}
										%>
								</select></td>							
							</tr>
							<%
							 if (isValidationErrorExist && exceptionMessagesManagement.checkExistenceOfErrorByKey("BankName")) {
							%>
								<tr>
									<td colspan="2"><font class="errorMessageStyles"> <%=exceptionMessagesManagement.getDetailExceptionMessage("BankName")  %> </font></td>
								</tr>
							<%
							 }
							%>
							<tr>
								<td>Account No</td>
								<td><input type="text" name="accountNo" <% if (isValidationErrorExist && employee.getAccountNumber() != -1) { %> value="<%=employee.getAccountNumber() %>" <% } %> size="<%=(String)configProps.getProperty("ACCOUNT_NUMBER_LENGTH") %>" maxlength="<%=(String)configProps.getProperty("ACCOUNT_NUMBER_LENGTH") %>"></td>
							</tr>
							<%
							 if (isValidationErrorExist && exceptionMessagesManagement.checkExistenceOfErrorByKey("AccountNo")) {
							%>
								<tr>
									<td colspan="2"><font class="errorMessageStyles"> <%=exceptionMessagesManagement.getDetailExceptionMessage("AccountNo")  %> </font></td>
								</tr>
							<%
							 }
							%>
							<tr>
								<td>Date of Birth</td>
								<td>
								  <select name="birthday">
								  	<%
								  		for (int i=1; i<=31; i++) {
									%>
										<option value="<%=i %>" <% if (isValidationErrorExist && i == employee.getDateOfBirth().getDate()) { %> selected="selected" <% } %>><%=i %></option>
									<%
								  		}
								  	%>
								 </select>
										<select name="birthmonth">
										<%

											for (int i=0; i<12; i++) {
										%>
												<option value="<%=i+1 %>" <% if (isValidationErrorExist && i == employee.getDateOfBirth().getMonth()) { %> selected="selected" <% } %>><%=dataConversionUtility.getMonthDescription(i) %></option>
										<%
											}
										%>
	  							  </select>
								  <select name="birthyear">
								  	<%
								  		if (isValidationErrorExist) {
								  			calendar.setTime(employee.getDateOfBirth());
								  		}
								  		for(int i=1930; i <= year; i++) {
								  	%>
										     <option value="<%=i %>" <% if (isValidationErrorExist && i == calendar.get(Calendar.YEAR)) { %> selected="selected" <% } %>><%=i %></option>
									<%
								  		}
								  	%>
								  </select>
								</td>
							</tr>
							<%
							 if (isValidationErrorExist && exceptionMessagesManagement.checkExistenceOfErrorByKey("DateOfBirth")) {
							%>
								<tr>
									<td colspan="2"><font class="errorMessageStyles"> <%=exceptionMessagesManagement.getDetailExceptionMessage("DateOfBirth")  %> </font></td>
								</tr>
							<%
							 }
							%>
							<tr>
								<td>Gender</td>
								<td>
									<input type="radio" name="sex" value="Male" <% if (isValidationErrorExist && employee.getGender() != null && employee.getGender().equalsIgnoreCase("Male")) { %> checked="checked" <% } %>>Male
									<input type="radio" name="sex" value="Female" <% if (isValidationErrorExist && employee.getGender() != null && employee.getGender().equalsIgnoreCase("Female")) { %> checked="checked" <% } %>>Female
								</td>
							</tr>
							<%
							 if (isValidationErrorExist && exceptionMessagesManagement.checkExistenceOfErrorByKey("Gender")) {
							%>
								<tr>
									<td colspan="2"><font class="errorMessageStyles"> <%=exceptionMessagesManagement.getDetailExceptionMessage("Gender") %> </font></td>
								</tr>
							<%
							 }
							%>
							<tr>
								<td>Civil Status</td>
								<td><select name="civilstatus">
										<option />
										<option value="Single" <% if (isValidationErrorExist && employee.getCivilStatus() != null && employee.getCivilStatus().equalsIgnoreCase("Single")) { %> selected="selected" <% } %>>Single</option>
										<option value="Married" <% if (isValidationErrorExist && employee.getCivilStatus() != null && employee.getCivilStatus().equalsIgnoreCase("Married")) { %> selected="selected" <% } %>>Married</option>
								</select>						
								</td>
							</tr>
							<%
							 if (isValidationErrorExist && exceptionMessagesManagement.checkExistenceOfErrorByKey("CivilStatus")) {
							%>
								<tr>
									<td colspan="2"><font class="errorMessageStyles"> <%=exceptionMessagesManagement.getDetailExceptionMessage("CivilStatus") %> </font></td>
								</tr>
							<%
							 }
							%>
							<tr>
								<td>Designation</td>
								<td><select name="designation">
										<option />
										<%
										int designationCount = dataConversionUtility.convertStringToNumber(configProps.getProperty("COMPANY_DESIGNATION_COUNT"));
										for (int i=1; i<=designationCount; i++){
										%>
											<option value="<%=i %>" <% if (isValidationErrorExist && i == employee.getDesignationCode()) { %> selected="selected" <% } %>><%=(String)configProps.getProperty("COMPANY_DESIGNATION_"+i) %></option>
										<%
										}
										%>
								</select></td>
							</tr>
							<%
							 if (isValidationErrorExist && exceptionMessagesManagement.checkExistenceOfErrorByKey("Designation")) {
							%>
								<tr>
									<td colspan="2"><font class="errorMessageStyles"> <%=exceptionMessagesManagement.getDetailExceptionMessage("Designation") %> </font></td>
								</tr>
							<%
							 }
							%>
							<tr>
								<td>Branch</td>
								<td><select name="branch">
										<option />
								<%
									for (Branch branch :availableBranchs) {
								%>
									<option value="<%=branch.getBranchId() %>" <% if (isValidationErrorExist && branch.getBranchId() == employee.getBranchId()) { %> selected="selected" <% } %>><%=branch.getDescription() %></option>
								<%
									}
								%>
								</select></td>
							</tr>
							<%
							 if (isValidationErrorExist && exceptionMessagesManagement.checkExistenceOfErrorByKey("Branch")) {
							%>
								<tr>
									<td colspan="2"><font class="errorMessageStyles"> <%=exceptionMessagesManagement.getDetailExceptionMessage("Branch") %> </font></td>
								</tr>
							<%
							 }
							%>
							<tr>
								<td>Division</td>
							    <td><select name="division">
										<option />
								<%
									for (Division division :availableDivisions) {
								%>
									<option value="<%=division.getDivisionId() %>" <% if (isValidationErrorExist && division.getDivisionId() == employee.getDivisionId()) { %> selected="selected" <% } %>><%=division.getName() %></option>
								<%
									}
								%>
								</select></td>
							</tr>
							<%
							 if (isValidationErrorExist && exceptionMessagesManagement.checkExistenceOfErrorByKey("Division")) {
							%>
								<tr>
									<td colspan="2"><font class="errorMessageStyles"> <%=exceptionMessagesManagement.getDetailExceptionMessage("Division") %> </font></td>
								</tr>
							<%
							 }
							%>
							<tr>
								<td>Manager/ Supervisor</td>
								<td><select name="managerorsupervisor">
										<option />
										<%
										List<Employee> list = employeeQueryService.getManagersOrSupervisors();
											for (int i=0; i< list.size(); i++) {
												Employee managerorsupervisor = list.get(i);
										%>
											<option value="<%=managerorsupervisor.getEmployeeId() %>" <% if (isValidationErrorExist && employee.getManagerId() == managerorsupervisor.getEmployeeId()) { %> selected="selected" <% } %>><%=managerorsupervisor.getFirstName() %></option>
										<%
											}
										%>
									</select>
								</td>
							</tr>
							<%
							 if (isValidationErrorExist && exceptionMessagesManagement.checkExistenceOfErrorByKey("Manager")) {
							%>
								<tr>
									<td colspan="2"><font class="errorMessageStyles"> <%=exceptionMessagesManagement.getDetailExceptionMessage("Manager") %> </font></td>
								</tr>
							<%
							 }
							%>
							<tr>
								<td>Company Joined Date</td>
								<td>
								  <select name="joinedday">
								  	<%
								  		for (int i=1; i<=31; i++) {
									%>
										<option value="<%=i %>" <% if (isValidationErrorExist && i == employee.getCompanyJoinedDate().getDate()) { %> selected="selected" <% } %>><%=i %></option>
									<%
								  		}
								  	%>
								 </select>
										<select name="joinedmonth">
										<%

											for (int i=0; i<12; i++) {
										%>
												<option value="<%=i+1 %>" <% if (isValidationErrorExist && i == employee.getCompanyJoinedDate().getMonth()) { %> selected="selected" <% } %>><%=dataConversionUtility.getMonthDescription(i) %></option>
										<%
											}
										%>
	  							  </select>
								  <select name="joinedyear">
								  	<%
								  		if (isValidationErrorExist) {
								  	    	calendar.setTime(employee.getCompanyJoinedDate());								  			
								  		}
								  		for(int i=1930; i <= year; i++) {
								  	%>
										     <option value="<%=i %>" <% if (isValidationErrorExist && i == calendar.get(Calendar.YEAR)) { %> selected="selected" <% } %>><%=i %></option>
									<%
								  		}
								  	%>
								  </select>
								</td>
							</tr>
							<%
							 if (isValidationErrorExist && exceptionMessagesManagement.checkExistenceOfErrorByKey("JoinedDate")) {
							%>
								<tr>
									<td colspan="2"><font class="errorMessageStyles"> <%=exceptionMessagesManagement.getDetailExceptionMessage("JoinedDate")  %> </font></td>
								</tr>
							<%
							 }
							%>
							<tr>
								<td>Employee Description</td>
								<td><textarea name="employeedescription" cols="30" rows="5"><% if (isValidationErrorExist) { %><%=employee.getEmployeeDescription() %> <% } %></textarea></td>
							</tr>
							<%
							 if (isValidationErrorExist && exceptionMessagesManagement.checkExistenceOfErrorByKey("EmployeeDescription")) {
							%>
								<tr>
									<td colspan="2"><font class="errorMessageStyles"> <%=exceptionMessagesManagement.getDetailExceptionMessage("EmployeeDescription")  %> </font></td>
								</tr>
							<%
							 }
							%>
						</table>
					</td>
				</tr>
				<tr>
					<td colspan="3"><div class="formButtonPanel"><input type="reset"> <input type="submit" name="submit" value="Submit" /></div></td>
				</tr>
			</table>
		  </center>
		</form>
	  </td>
	</tr>
<%@ include file="../common/SiteFotterSection.jsp" %>
</body>
</html>